//接收请求
import request from "@/utils/request";
//登录
export const login = (data:{username:string,password:string|number}) =>{
    return request({
        url:'/api/login',
        method:'post',
        data
    })
}
//注销登录
export const logOut = () =>{
    return request({
        url:'/api/logout',
        method:'post',
    })
}
//获取当前用户可用菜单
export const getMenus = (params?:any) =>{
    return request({
        url:'/api/menu/getMenus',
        method:'get',
        params
    })
}